'use strict';
const ENV = {
    // ApiRoot: 'https://api.ysc.newkr.net/xp',
    ApiRoot: 'https://api.newkr.net/xp',
    // MagazineApiRoot: 'http://test.xiyanghui.com:8070',
    MagazineApiRoot: 'http://z.xiyanghui.com',
    ApiPath: '/api/mobile.php',
    // ServerRoot: 'http://test.xiyanghui.com',
    ServerRoot: 'http://mobile_test.xiyanghui.com',
    // ServerRoot: 'http://localhost',

    product: false,

    appScheme: 'xiyanghui://',

    AndroidYYBLink: 'http://a.app.qq.com/o/simple.jsp?pkgname=com.xiyanghui.android',

    getApiURL() {
        return `${this.ApiRoot}${this.ApiPath}`;
    },

    getProxyURL() {
        return `${this.ServerRoot}/proxy.php`;
    },

    getQQLoginURL() {
        return `${this.ApiRoot}/desktop/index.php/user/qq_login?type=mobile`;
    },

    getProductRedirectURL(id) {
        return `http://www.xiyanghui.com/shop/redirect?id=${id}`;
    },

    getWXQQChatLink() {
        // return 'http://wpa.qq.com/msgrd?v=3&uin=4009004049&site=qq&menu=yes';
        return 'http://wpa.b.qq.com/cgi/wpa.php?ln=2&uin=4009004049';
    },

    getBrowserQQChatLink() {
        return 'mqqwpa://im/chat?chat_type=wpa&uin=938197206&version=1&src_type=web&web_src=http:://m.xiyanghui.com';
    },
};

export default ENV;
